from rest_framework import serializers
from answer.models import Task, TaskSubmit, TaskQuestion


class TaskSerializer(serializers.ModelSerializer):
    class Meta:
        model = Task
        fields = '__all__'


class TaskSubmitSerializer(serializers.ModelSerializer):
    class Meta:
        model = TaskSubmit
        fields = '__all__'


class TaskQuestionSerializer(serializers.ModelSerializer):
    class Meta:
        model = TaskQuestion
        fields = '__all__'
